package com.pactera.madp.cp.mapper.medium;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pactera.madp.cp.api.entity.medium.MediumEnyity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: Huayu
 * @time: 2020/12/4 18:57
 */
public interface MediumMapper extends BaseMapper<MediumEnyity> {

    List<MediumEnyity> getMediumList(Map<String,Object> map);

    Integer updateMediaByGroupId(MediumEnyity mediumEnyity);

    List<MediumEnyity> getAllMediumList(Map<String, Object> map);

    IPage getMediumPage(
            Page page,
            @Param("corpId") Integer corpId,
            @Param("tenantId") Integer tenantId,
            @Param("isSync") Integer isSync,
            @Param("departmentId") Integer departmentId,
            @Param("type") Integer type
    );

}
